const { User } = require('../../modle/user');

module.exports = async(req, res) => {
    //const id = req.query.id
    //res.send(id)
    //根据id删除用户
    await User.findOneAndDelete({_id: req.query.id});
    res.redirect('/admin/user');

}